namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class FormLogMap : ClassMap<FormLogDataModel>
    {
        #region Constructors and Destructors

        public FormLogMap()
        {
            this.Table("Form_Log");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("ID");
            this.Map(x => x.LogTime).Not.Nullable().Column("Log_Time");
            this.Map(x => x.UserId).Not.Nullable().Column("User_ID");
            this.Map(x => x.UserName).Not.Nullable().Column("UserName");
            this.Map(x => x.ItemId).Column("Item_ID");
            this.Map(x => x.CultureCode).Not.Nullable().Column("Culture_Code");
            this.Map(x => x.Type).Not.Nullable().Column("Type");
            this.Map(x => x.ItemType).Column("Item_Type");
        }

        #endregion
    }
}